package microservices.spring_cloud_client.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import microservices.spring_cloud_client.api.ClientTestRestApi;

@RestController
public class ClientTestRest {
	@Autowired
	ClientTestRestApi clientTestRestApi;

	@RequestMapping(value = "/clientprint", method = RequestMethod.GET)
	public String clientprint() {
		return clientTestRestApi.clientprint();
	}

	@RequestMapping(value = "/getappname", method = RequestMethod.GET)
	public String getappname() {
		return clientTestRestApi.getappname();
	}
}
